﻿using UnityEngine;
using System.Collections;

public class OpenGate : MonoBehaviour {
	void OnTriggerEnter(Collider other) {
		GameObject.Find("Gate").GetComponent<Animator>().SetBool("Opened", false);
		GameObject.Find ("ButtonPlatform").GetComponent<Animator> ().SetBool ("Available", true);
	}
}
